package com.bloveoa.zkkd.doman;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Table(name = "t_box_info")
@Data
@Accessors(chain = true)
@DynamicInsert
@DynamicUpdate
@Entity
@ApiModel(value = "BoxInfoModel", description = "盒子信息")
public class BoxInfoModel implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", insertable = false, nullable = false)
    private Integer id;

    @ApiModelProperty(value = "设备id", name = "tDeviceId", example = "54c8ae86cbbf6dc")
    @Column(name = "t_device_id",unique = true)
    private String tDeviceId;

    @ApiModelProperty(value = "在线时长（分钟）", name = "tOnLong", example = "1")
    @Column(name = "t_on_long")
    private Integer tOnLong;

    @ApiModelProperty(value = "开机次数", name = "tOpenTims", example = "1")
    @Column(name = "t_open_tims")
    private Integer tOpenTims;

    @ApiModelProperty(value = "mac 地址", name = "tMac", example = "2c:3a:e8:59:d4:e6")
    @Column(name = "t_mac")
    private String tMac;

    @ApiModelProperty(value = "归属商业用户 ID", name = "tBusinessId", example = "")
    @Column(name = "t_business_id")
    private String tBusinessId;

    @ApiModelProperty(value = "绑定设备用户 ID", name = "tBindDeviceId", example = "")
    @Column(name = "t_bind_device_id")
    private String tBindDeviceId;
    @ApiModelProperty(value = "联系方式", name = "tPhone", example = "")
    @Column(name = "t_phone")
    private String tPhone;

    @ApiModelProperty(value = "数量", name = "tokenNun", example = "1")
    @Column(name = "token_nun")
    private Integer tokenNun;

}
